﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Text;

namespace Twipler.Xtensions
{
    public static class AssemblyExtension
    {
        public static IEnumerable<Type> GetTypes(this Assembly asm, Type baseType)
        {
            return from type in asm.GetTypes() where baseType.IsAssignableFrom(type) && type != baseType select type;
        }
    }
}
